<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
 
<html>
  <head>
   <link rel="stylesheet" href="<s:url value="/resources"/>/css/innerstyle.css" type="text/css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/cupertino/jquery-ui.custom.min.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/ui.jqgrid.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="<s:url value="/resources"/>/css/ui.multiselect.css" />
    <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery-ui.custom.min.js"></script>  
    <script type="text/javascript" src="<s:url value="/resources"/>/js/i18n/grid.locale-cn.js"></script> 
    <script type="text/javascript" src="<s:url value="/resources"/>/js/jquery.jqGrid.min.js"></script>
    <script type="text/javascript" src="<s:url value="/resources"/>/js/i18n/jquery.ui.datepicker-zh-CN.js"></script>
	<style type="text/css">

#tab{
	width:99%;
	border:#F4F4F4 solid 4px;
	padding:0 2px 0 2px;
	margin:0;
	float:left;
}


#tab h1{
	display:block;
	width:95%;
	height:55px;	
	float:left;
	text-align: center;
	margin:0px;
}
#tab h1 span{
	width:95%;
	font:bold 26px/55px Arial, Helvetica, sans-serif;
	color:#327C8E;
	background-color:#fff;
	display:block;
}
#tab h2{
	display:block;
	width:10%;
	height:55px;	
	float:left;
	padding-top:0;
}
#tab h2 span{
	width:250px;
	font:bold 26px/55px Arial, Helvetica, sans-serif;
	color:#000;
	background-color:#fff;
	display:block;
}

#tab h3{
	display:block;
	width:10%;
	height:55px;	
	float:left;
	padding-top:0;
}
#tab h3 span{
	width:300px;
	font:bold 26px/55px Arial, Helvetica, sans-serif;
	color:#000;
	background-color:#fff;
	display:block;
}
#tab h4{
	display:block;
	width:95%;	
	float:left;
	text-align: center;
	margin:0px;
}

.content1
{
	margin:0px;	
	padding:0px;
	width:100%;	
	font-size:12px;	
}
.content1 td
{    
    height:16px;
	line-height:16px;
	text-align:left;
	border-top-style:none;
	border-left-style:none;
	border-right-style:none;
	border-bottom-style:none;
}
label{ display:block; }
fieldset { padding:0; border:0; margin-top:0; }
</style>
<style media=print type="text/css">   
.noprint{visibility:hidden}   
</style>
</head>

<SCRIPT type="text/javascript"> 
var hkey_root,hkey_path,hkey_key;
hkey_root="HKEY_CURRENT_USER";
//<!--地址的写法很严格的用双斜杠-->
hkey_path="\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";
//设置网页打印的页眉页脚为空
function pagesetup_null(){
try{
$("#qrcode").show();
var RegWsh = new ActiveXObject("WScript.Shell");
hkey_key="header";
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"");
hkey_key="footer";
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"");

}catch(e){}
}


</SCRIPT>


<script language="JavaScript" type="text/javascript">
  
  
  	$(function (){	
  	    $("#guanbi").button();  
  	    $("#dayin").button();
  	    $("#slider").slider({
			min: 0,
			max: 5,
			range: "min",
			value: ${bdxx.danjzt}
		});
		$("#slider").slider( 'disable' ) ;  
		$("#qrcode").hide();
		checkJg();	    
	});
	
	function checkJg(){
	var jig = $("#jiag").text();
	//alert(jig);
	var jiglx ="${bdxx.jiaglxname}";
	var neir =$("#neir2").text();
	var str = "";
	if(jiglx!='' && jiglx!=null){
	    str+=jiglx+":";
	}
	if(jig!='' && jig!=null){
	    str+=jig+"元/吨,"	;
	}
	$("#neir2").text(str+neir);
	}

</script>
	

	
	

<body>
<OBJECT   id=WebBrowser   classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2   height=0   width=0> </OBJECT>
	
	<div id="tab">
	<!-- 	    
		<h3 class="noprint">
		<font size="2">待提报&nbsp;|&nbsp;待确认&nbsp;|&nbsp;卖方审批&nbsp;|&nbsp;买方审批&nbsp;|&nbsp;中心审批&nbsp;|&nbsp;已归档</font>
        <div id="slider" style="width:330px;margin:5px;"></div>
		</h3>
     -->
      
       
		<h1>挂 牌 报 单</h1>	
			
			<table id="list_search" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="120">出卖人（销方）:</td>
					<td width="30%"><c:if test="bdxx.maimlx==6">${bdxx.baoddwmc}</c:if></td>
					<td width="120">企业报单号:</td>
					<td width="20%">${bdxx.baoddm}</td>
					<td width="150"><c:if test="bdxx.hetxs==1">出省站</c:if><c:else>营业站</c:else>  </td>
					<td ><c:if test="bdxx.hetxs==1">${bdxx.meijglzname}</c:if><c:else>${bdxx.yingyzname}</c:else></td>
				</tr>

				<tr>
					<td>买受人（购方）:</td>
					<td><c:if test="bdxx.maimlx==5">${bdxx.baoddwmc}</c:if> </td>
					<td>合同形式:</td>
					<td>${bdxx.hetxsname}</td>
					<td>到达省、地（市）:</td>
					<td>${bdxx.daodssdname}</td>
				</tr>

				<tr>
					<td>发货单位:</td>
					<td><c:if test="bdxx.maimlx==6">${bdxx.sfahdwname}</c:if></td>
					<td>签订时间:</td>
					<td>${bdxx.baodsj}</td>
					<td>隶属行业:</td>
					<td>${bdxx.lisname}</td>
				</tr>

				<tr>
					<td colspan="6" style="padding-top:5px;">一、收货人名称、品种规格、数量、单价</td>
				</tr>
				<tr>
					<td colspan="6" style="padding:1px;">
						<table id="changdi" align="center" cellpadding="0" cellspacing="0" border="1"
							class="content_gridview" >
							<thead>
								<tr>
									<th rowspan="3">收货人名称</th>
									<th rowspan="3">品种规格</th>
									<th rowspan="3">质量指标</th>
									<th rowspan="3">价格<br/>(元/吨)</th>
									<th colspan="13">交（提）货时间、煤量（吨）</th>

								</tr>
								<tr>
									<th rowspan="2">全年合计</th>
									<th colspan="3">一季度</th>
									<th colspan="3">二季度</th>
									<th colspan="3">三季度</th>
									<th colspan="3">四季度</th>
								</tr>
								<tr>
									<th>1</th>
									<th>2</th>
									<th>3</th>
									<th>4</th>
									<th>5</th>
									<th>6</th>
									<th>7</th>
									<th>8</th>
									<th>9</th>
									<th>10</th>
									<th>11</th>
									<th>12</th>
								</tr>
							</thead>
							<tbody>
							
									<tr>
										<td><c:if test="bdxx.maimlx==5">${bdxx.sfahdwname}</c:if></td>
										<td>${bdxx.pinzgg}</td>
										<td>${bdxx.zhilzb}</td>
										<td><div id="jiag"><fmt:formatNumber value="${bdxx.danj}" pattern="###.##"/></div></td>
										<td><fmt:formatNumber value="${bdxx.shul}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml1}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml2}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml3}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml4}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml5}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml6}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml7}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml8}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml9}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml10}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml11}" pattern="###"/></td>
										<td><fmt:formatNumber value="${bdxx.gml12}" pattern="###"/></td>
									</tr>
								
							</tbody>
						</table></td>
				</tr>

				<tr style="line-height:26px;">
					<td colspan="6">
						<table id="djtk" cellpadding="0" cellspacing="0"  border rules=rows frame=below >

							<s:iterator value="djtk" status="i">
								<tr>
									<td>${tkh} ${biaot}</td>
									<td style="width:86%"><div id="neir${i.index}">${neir}</div></td>
								</tr>
							</s:iterator>
						</table></td>
				</tr>
				<tr>
					<td colspan="6">
						<table cellpadding="0" cellspacing="0" style="width:100%" border="1"
							class="content_gridview">
							<thead>
								<tr>
									<th colspan="2" style="width:40%">出卖人</th>
									<th colspan="2"  style="width:40%">买受人</th>
									<th  style="width:20%">鉴（公）证单位：</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td style="width:20%"><c:if test="bdxx.maimlx==6"><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人名称(章)：</td>
												<td>${bdxx.baoddwmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${bdxx.zhus}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${bdxx.faddbr}
												</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${bdxx.weitdlr}
												</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${bdxx.dianh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${bdxx.chuanz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${bdxx.youzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${bdxx.kaihyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${bdxx.yinhzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${bdxx.nasrdjh}</td>
											</tr>

										</table></c:if>
										<c:else>
										<table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人名称(章)：</td>
												<td></td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td></td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td></td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td></td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td></td>
											</tr>
											<tr>
												<td>传真:</td>
												<td></td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td></td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td></td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td></td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td></td>
											</tr>

										</table></c:else></td>
									<td style="width:20%"><c:if test="bdxx.maimlx==6"><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人结算单位名称(章)：</td>
												<td>${bdxx.jsdwmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${bdxx.jsdwzs}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${bdxx.jsfddbr}</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${bdxx.jswtdlr}</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${bdxx.jsdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${bdxx.jscz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${bdxx.jsyb}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${bdxx.jskhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${bdxx.jsyhzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${bdxx.jsnsdjh}</td>
											</tr>

										</table></c:if><c:else><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>出卖人结算单位名称(章)：</td>
												<td></td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td></td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td></td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td></td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td></td>
											</tr>
											<tr>
												<td>传真:</td>
												<td></td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td></td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td></td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td></td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td></td>
											</tr>

										</table></c:else>
									</td>
								  <td style="width:20%"><c:if test="bdxx.maimlx==5"><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人名称(章)：</td>
												<td>${bdxx.baoddwmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${bdxx.zhus}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${bdxx.faddbr}
												</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${bdxx.weitdlr}
												</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${bdxx.dianh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${bdxx.chuanz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${bdxx.youzbm}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${bdxx.kaihyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${bdxx.yinhzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${bdxx.nasrdjh}</td>
											</tr>

										</table></c:if>
										<c:else>
									  <table cellpadding="0" cellspacing="0" border="0"
											class="content1">
                                        <tr>
                                          <td>买受人名称(章)：</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>住 所:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>法定代表人:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>委托代理人:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>电 话:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>传真:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>邮政编码:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>开户银行:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>帐号:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>纳税人登记号:</td>
                                          <td></td>
                                        </tr>
                                      </table></c:else></td>
									<td style="width:20%"><c:if test="bdxx.maimlx==5"><table cellpadding="0" cellspacing="0" border="0"
											class="content1">
											<tr>
												<td>买受人结算单位名称(章)：</td>
												<td>${bdxx.jsdwmc}</td>
											</tr>
											<tr>
												<td>住 所:</td>
												<td>${bdxx.jsdwzs}</td>
											</tr>
											<tr>
												<td>法定代表人:</td>
												<td>${bdxx.jsfddbr}</td>
											</tr>
											<tr>
												<td>委托代理人:</td>
												<td>${bdxx.jswtdlr}</td>
											</tr>
											<tr>
												<td>电 话:</td>
												<td>${bdxx.jsdh}</td>
											</tr>
											<tr>
												<td>传真:</td>
												<td>${bdxx.jscz}</td>
											</tr>
											<tr>
												<td>邮政编码:</td>
												<td>${bdxx.jsyb}</td>
											</tr>
											<tr>
												<td>开户银行:</td>
												<td>${bdxx.jskhyh}</td>
											</tr>
											<tr>
												<td>帐号:</td>
												<td>${bdxx.jsyhzh}</td>
											</tr>
											<tr>
												<td>纳税人登记号:</td>
												<td>${bdxx.jsnsdjh}</td>
											</tr>

										</table></c:if>
										<c:else>
									  <table cellpadding="0" cellspacing="0" border="0"
											class="content1">
                                        <tr>
                                          <td>买受人结算单位名称(章)：</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>住 所:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>法定代表人:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>委托代理人:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>电 话:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>传真:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>邮政编码:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>开户银行:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>帐号:</td>
                                          <td></td>
                                        </tr>
                                        <tr>
                                          <td>纳税人登记号:</td>
                                          <td></td>
                                        </tr>
                                      </table></c:else></td>
									<td rowspan="2">
									<div algin="left">经办人：</div> 
									<br/><br/><br/><br/>
									
									鉴（公）证机构（章）<br/>年 月  日
									</td>
								</tr>
							</tbody>
						</table></td>

				</tr>
				<tr>					
					<td colspan="6" align="right"><font size="2">有效期：${bdxx.kaissj} 至 ${bdxx.jiessj}</font>					</td>
				</tr>

				<tr>
					<td colspan="6" align="center">						
					
						<input id="guanbi" class="noprint" type="button" name="" value="关闭" onclick="window.history.go(-1);window.close();" /> 										
					</td>
				</tr>

			</table>
		
	</div>	
</body>
</html>
